# -*- coding:utf-8 -*- 
__author__ = 'jiangjun'
__date__ = '2018/3/28 10:39 '


class ResponseData:
    """
    返回http接口调用，json数据
    """

    def __init__(self, flag, msg, data=None):
        self.flag = flag
        self.msg = msg
        self.data = data

    def set_data(self, data):
        self.data = data

    def __str__(self):
        return '成功标识：%s, 信息：%s' % (self.flag, self.msg)



